﻿<div id="accountLinks">
    @if (Request.IsAuthenticated)
    {
        <ul class="clearfix">
            <li>Hello, @Rated.Website.Helpers.UserHelper.FullName</li>
            <li>@Html.ActionLink("My Profile", "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })</li>
            <li>
                @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
                {
                    @Html.AntiForgeryToken()
                    <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
                }</li>
            <li>@Rated.Website.Helpers.UserHelper.UserProfile.SubscriptionType.Title</li>
        </ul>
    }
    else
    {
        <ul class="clearfix">
            <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
        </ul>
    }
</div>
